import request from '@/utils/request'

// 查询市列表
export function listFndCity(query) {
  return request({
    url: '/basic/fndCity/list',
    method: 'get',
    params: query
  })
}

// 查询市详细
export function getFndCity(city) {
  return request({
    url: '/basic/fndCity/' + city,
    method: 'get'
  })
}

// 新增市
export function addFndCity(data) {
  return request({
    url: '/basic/fndCity',
    method: 'post',
    data: data
  })
}

// 修改市
export function updateFndCity(data) {
  return request({
    url: '/basic/fndCity',
    method: 'put',
    data: data
  })
}

// 删除市
export function delFndCity(city) {
  return request({
    url: '/basic/fndCity/' + city,
    method: 'delete'
  })
}
